//右侧工具条
'use strict';
var React = require('react');

class HkfsHomeToolBar extends React.Component {
    constructor(props) {
        super(props);
        this.renderContent=this.renderContent.bind(this);
    }

    renderContent(){
       return  this.props.children.map((child,i)=>{
            return <div onClick={child.props.barClick} onMouseOver={child.props.barMouseOver} onMouseOut={child.props.barMouseOut} className="HkfsHomeToolBar_Item" key={"HkfsHomeToolBarItem"+i}>{child}</div>
            });
    }

    render(){
        return(
            <div className="HkfsHomeToolBar_Container">
                {this.renderContent()}
            </div>
        )
    }
}

module.exports=HkfsHomeToolBar;